package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * Created by QIUzh on 2020/11/21 17:22
 */
public interface SettingService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    void add(Role role);

    int queryByname(String name,String keyword);

    void deleteById(Integer id);

    void edit(Role role);

    Role findById(Integer id);




    List<Integer> findPermissionById(Integer id);

    List<Permission> findPermissionAll();

    List<Integer> findPrIdsByid(Integer id);

    List<Menu> findMenuAll();

    List<Integer> findMnIdsByid(Integer id);

    void fenPei(Role role, Integer[] checkIds);

    void fenPei2(Role role, Integer[] checkIds2);
}
